package com.oscarmovie.service;

import java.util.List;

import com.oscarmovie.dao.MprDao;
import com.oscarmovie.model.Mpr;

public class MprServiceImpl implements MprService{
	private MprDao mprDao;

	public void setMprDao(MprDao mprDao) {
		this.mprDao = mprDao;
	}

	public MprDao getMprDao() {
		return mprDao;
	}

	
	public void save(Mpr mpr) {
		mprDao.save(mpr);
	}

	
	public Mpr load(int id) {
		Mpr mpr =  mprDao.load(id);
		return mpr;
	}

	
	public List<Mpr> loadAll() {
		return mprDao.loadAll();
	}

	
	public void delete(Mpr mpr) {
		mprDao.delete(mpr);
	}
}
